package com;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;

@ImportResource("classpath:beans.xml")
@SpringBootApplication
//@RestController
public class Application {
    public static void main(String[] args) {
//        SpringApplication.run(GreetingController.class, args);
        SpringApplication.run(Application.class, args);
//        SpringApplication.run(Application.class, args);
//        SpringApplication.run(ChapterApplication.class, args);
    }
//    @GetMapping("/hello")
//    public String hello(@RequestParam(value = "name", defaultValue = "World") String name) {
//        return String.format("Hello %s!", name);
//    }
}